package com.ym521.simple

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.GridView
import androidx.recyclerview.widget.RecyclerView
import com.ym521.skeleton.Skeleton

class GridViewSkeletonActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_grid_view_skeleton)

        Skeleton.bind(findViewById<GridView>(R.id.gvView))
            .load(R.layout.skeleton_view_item)
            .angle(30)
            .duration(1500)
            .count(20)
            .show()
    }
}